//
//  amazon_call.h
//  amazon_test
//
//  Created by Pierre Guilbert on 7/27/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#define AWS_ID  @"AKIAISTOM6SEAONYPECA"
#define THUMB_URL @"http://ecx.images-amazon.com/images/P/"
#define THUMB_FORMAT @".01._SCLZZ_SS500.jpg"

@interface AmazonModule : NSObject {
	NSXMLDocument *doc; 
	NSArray *itemNodes;
	NSString* imageData;
	NSString* directors;
	NSString* year;
	NSString* actors;
	NSString* title;
	NSString* search;
	NSString* asin;
}

- (id) initWithStrTitle: (NSString *)inString;
- (id) init;
- (void) setItemNode;
- (void) initImage;
- (void) setDirectorsFromItemNode;
- (void) setYearFromItemNode;
- (void) setActorsFromItemNode;
- (void) setTitleFromItemNode;
- (NSString*) getTitle;
- (NSString*) getYear;
- (NSString*) getImageData;
- (NSString*) getDirectors;
- (NSString*) getActors;
- (void) dealloc;
@end
